export default function dateTimeTransform(currentDate, currentTime) {

// 将数组中的值转换为数字
    const year = parseInt(currentDate.value[0]);
    const month = parseInt(currentDate.value[1]) - 1; // 月份从0开始
    const day = parseInt(currentDate.value[2]);

    const hours = parseInt(currentTime.value[0]);
    const minutes = parseInt(currentTime.value[1]);
    const seconds = parseInt(currentTime.value[2]);

// 创建一个 Date 对象
    const date = new Date(year, month, day, hours, minutes, seconds);

// 将日期格式化为 ISO 8601 格式
    const formattedDate = date.toISOString();
    console.log(formattedDate); // 输出: 2021-01-01T12:00:00.000Z
    return formattedDate;

}